package cn.xiaoyangh.basic.mapper;

import cn.xiaoyangh.basic.domain.BaseDomain;
import cn.xiaoyangh.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void  save(T t);
    void remove(Long id);
    void update(T t);
    List<T> findAll();
    T loadById(Long id);

    Integer count(BaseQuery basequery);
    List<T> loadByQuery(BaseQuery basequery);

    void deletAll(List<Long> list);
}
